//
// Created by jiangpenghui on 2023/4/18.
//
#include "Trash.h"
#include "../design_pattern/Point.h"
#include "../design_pattern/Singleton.h"

int main() {

    int *p23 = nullptr;

    p23 = reinterpret_cast<int *>(10);
    cout << p23 << endl;

    Point p1(1, 2, 3);
    Point p2 = Space::translate(p1, Vector(11, 45));

    std::cout << "P1：" << p1 << " P2:" << p2 << endl;

    Singleton &s = Singleton::instance();
    cout << s.getValue() << endl;
    s.setValue(10);
    cout << s.getValue() << endl;

    // 地址一致
    cout << &s.instance() << endl;
    cout << &s << endl;
}